-
-
Notifications
You must be signed in to change notification settings - Fork 252
fix: invalid revoke token #7012
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
2f92c99 to
96b1644
Compare
|
@metamaskbot publish-preview |
|
Preview builds have been published. See these instructions for more information about preview builds. Expand for full list of packages and versions. |
|
@metamaskbot publish-preview |
|
Preview builds have been published. See these instructions for more information about preview builds. Expand for full list of packages and versions. |
|
@metamaskbot publish-preview |
|
Preview builds have been published. See these instructions for more information about preview builds. Expand for full list of packages and versions. |
…param to skip vault creation check
|
@metamaskbot publish-preview |
|
Preview builds have been published. See these instructions for more information about preview builds. Expand for full list of packages and versions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
|
@metamaskbot publish-preview |
|
Preview builds have been published. See these instructions for more information about preview builds. Expand for full list of packages and versions. |
Explanation
Fixed
Invalid Revoke Token.References
Checklist
Note
Makes revokeToken optional during authenticate, enforces access/revoke in the vault with a new retrieval helper, renames the auth check method, and improves token refresh/expiry handling.
authenticatenow accepts optionalrevokeToken;refreshAuthTokensre-authenticates without passingrevokeToken.#getAccessTokenAndRevokeToken(password)fetchesaccessToken/revokeTokenfrom state or decrypts the vault; used by#createNewVaultWithAuthData.checkAccessTokenExpiredtreats missingaccessTokenas expired.checkIsSeedlessOnboardingUserAuthenticatedtogetIsUserAuthenticated(returns true only ifaccessTokenandrevokeTokenexist).assertIsSeedlessOnboardingUserAuthenticatedvalidates core auth fields (no longer requires access/revoke tokens).assertIsValidVaultDatanow requiresrevokeTokenandaccessTokenand throws specific errors when missing.#recoverAuthPubKey.revokeToken.revokeTokeninauthenticate, and fix forInvalidRevokeTokeninrefreshAuthTokens.Written by Cursor Bugbot for commit 40da53b. This will update automatically on new commits. Configure here.